package com.tool.excel.excelTest.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.tool.excel.utils.ExcelExport;
import com.tool.excel.utils.ExcelImport;
import lombok.Data;

/**
 * @author 酒徒
 * @Version 1.0
 * @data 2025/7/9 14:10
 */
@Data
public class Student {
    @ExcelExport("学号") // 导出excel对应的列名
    @ExcelImport("学号") // 读取excel对应的列名
    @JSONField(alternateNames = "学号") // json类型转换对应的字段名
    private String id;

    @ExcelExport("姓名")
    @ExcelImport("姓名")
    @JSONField(alternateNames = "姓名")
    private String name;

    @ExcelExport("科目")
    @ExcelImport("科目")
    @JSONField(alternateNames = "科目")
    private String subject;

    @ExcelExport("成绩")
    @ExcelImport("成绩")
    @JSONField(alternateNames = "成绩")
    private String score;
}
